﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace chessLogic
{
    public class Queen:Figure
    {
         public Queen(FigureColor color) : base(color, FigureType.Queen) { }
         public override List<Position> GetPossiblyPositionNormalMove(Position position,Board board)
         {
             List<Position> allPos = getRookPositions(position, board);
             allPos.AddRange(getBishopPositions(position, board).ToArray());
             return getNeedPositions(allPos, false, board);
         }
         public override List<Position> GetPossiblyPositionTakingMove(Position position,Board board)
         {
             List<Position> allPos = getRookPositions(position, board);
             allPos.AddRange(getBishopPositions(position, board).ToArray());
             return getNeedPositions(allPos, true, board);
         }
    }
}
